export const label = () => new Promise(resolve => {
  const label = document.createElement('div')
  const i = document.createElement('i')
  const span = document.createElement('span')
  const edit = document.getElementById('editctn').parentNode
  const editLeft = edit.offsetLeft
  const editRight = editLeft + edit.offsetWidth
  label.id = 'els-it'
  label.className = 'els-it'
  label.appendChild(i)
  label.appendChild(span)
  label.style.position = 'fixed'
  label.style.left = 0
  label.style.top = 0
  label.style.display = 'flex'
  label.style.alignItems = 'center'
  label.style.justifyContent = 'center'
  resolve({
    label: label,
    editLeft: editLeft,
    editRight: editRight
  })
})
